﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace STKMIS.Model
{
    /// <summary>
    /// 的实体类
    /// </summary>
    [Serializable]
    public class PoductSupplierModel
    {
        // 常量
        public const string tableName = "ProductSupplier";
        public const string primaryKeyName = "Id";

        // 成员变量
        private int _id;
        private string _name;
        private string _address;
        private string _linkMan;
        private string _telphone;
        private int _kind;

        /// <summary>
        /// 字段名结构
        /// <summary>
        public struct FieldName
        {
            public const string id = "Id";
            public const string name = "Name";
            public const string address = "Address";
            public const string linkMan = "LinkMan";
            public const string telphone = "Telphone";
            public const string kind = "Kind";
        }

        /// <summary>
        /// 默认构造函数
        /// <summary>
        public PoductSupplierModel() { }

        /// <summary>
        /// 带参构造函数
        /// <summary>
        ///<param name="id"></param>
        ///<param name="name"></param>
        ///<param name="address"></param>
        ///<param name="telphone"></param>
        ///<param name="kind">0代表供应商，1代表分销商</param>
        public PoductSupplierModel(int id, string name, string address,string linkMan, string telphone, int kind)
        {
            this._id = id;
            this._name = name;
            this._address = address;
            this._linkMan = linkMan;
            this._telphone = telphone;
            this._kind = kind;
        }

        /// <summary>
        /// 
        /// <summary>
        public int Id
        { 
            get { return _id; }
            set { _id = value; }
        }

        /// <summary>
        /// 
        /// <summary>
        public string Name
        { 
            get { return _name; }
            set { _name = value; }
        }

        /// <summary>
        /// 
        /// <summary>
        public string Address
        { 
            get { return _address; }
            set { _address = value; }
        }

        /// <summary>
        /// 
        /// <summary>
        public string LinkMan
        {
            get { return _linkMan; }
            set { _linkMan = value; }
        }

        /// <summary>
        /// 
        /// <summary>
        public string Telphone
        { 
            get { return _telphone; }
            set { _telphone = value; }
        }

        /// <summary>
        /// 0代表供应商，1代表分销商
        /// <summary>
        public int Kind
        { 
            get { return _kind; }
            set { _kind = value; }
        }
    }
}
